package org.xdq.观察者模式;

public class Test {

    public static void main(String[] args) {
        Goods goods  = new Goods(100);
        goods.addObserver(new Manager());
        goods.addObserver(new Customer());
        goods.addObserver(new Productor());

        goods.setPrice(103);
        goods.setPrice(90);
    }
}
